export const getSafeAreaInsets=async()=> {
		//获取系统安全区信息
		const systemInfo = await uni.getSystemInfoSync();
		const safeArea = systemInfo.safeArea || {};
		const screenHeight = systemInfo.screenHeight;
		const screenWidth = systemInfo.screenWidth;
		const statusBarHeight = systemInfo.statusBarHeight || 0;
		console.log(systemInfo);
		const sysTop = safeArea.top || statusBarHeight;
		const sysBottom = screenHeight - safeArea.bottom;
		const sysLeft = safeArea.left || 0;
		const sysRight = screenWidth - safeArea.right;

		//获取胶囊按钮位置信息
		const menuButton =await uni.getMenuButtonBoundingClientRect();
		console.log(menuButton);
		const butTop = menuButton.top;
		const butbottom = menuButton.bottom;
		const butleft = menuButton.left;
		const butright = menuButton.right;
		const butwidth = menuButton.width;
		const butheight = menuButton.height;
		
		const sysButHeight=(butTop-sysTop)*2+butheight;
		console.log(sysButHeight);
		return {
			sysTop,
			sysBottom,
			sysLeft,
			sysRight,
			menuButton,
			butTop,
			butbottom,
			butleft,
			butright,
			butwidth,
			butheight,
			sysButHeight
		};
	}
